package com.ydgk.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Date;

public class Teacher {
    private Integer tid;
    private String tname;
    private Integer tsal;
    private String tsex;
    @JSONField(format = "yyyy-MM-dd")
    private Date tdate;

    public Teacher(Integer tid, String tname, Integer tsal, String tsex, Date tdate) {
        this.tid = tid;
        this.tname = tname;
        this.tsal = tsal;
        this.tsex = tsex;
        this.tdate = tdate;
    }

    public Teacher() {
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Integer getTsal() {
        return tsal;
    }

    public void setTsal(Integer tsal) {
        this.tsal = tsal;
    }

    public String getTsex() {
        return tsex;
    }

    public void setTsex(String tsex) {
        this.tsex = tsex;
    }

    public Date getTdate() {
        return tdate;
    }

    public void setTdate(Date tdate) {
        this.tdate = tdate;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", tsal=" + tsal +
                ", tsex='" + tsex + '\'' +
                ", tdate=" + tdate +
                '}';
    }
}
